// 控件公共样式变量
.element() {
    position: relative;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.bind-fx-txt() {
    width: inherit;
    height: inherit;
    border-radius: inherit;
    display: inline-flex;
    align-items: center;
    padding: 0 5px;
    opacity: 0.8;
    box-sizing: border-box;
    .el-icon {
        margin-right: 2px;
    }
}

.empty-position() {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #87d4ff;
    background-color: rgba(236, 247, 253, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    z-index: 0;
    padding: 10px;
}
// 容器控件遮盖层
.empty-content(@content) {
    position: relative;
    &::after {
        content: @content;
        .empty-position;
    }
}

.disable-position() {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #909399;
    background-color: rgba(230, 230, 230, 0.5);
    outline: 1px dashed #909399;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 100;
    padding: 10px;
}
// 容器控件遮盖层-控件不可放置样式
.disable-content(@content) {
    position: relative;
    &::after {
        content: '不可放置';
        .disable-position;
    }
}

// 横向滚动条样式
.horizontal-scrollbar() {
    &::-webkit-scrollbar {
        width: 4px;
        height: 6px;
        // 滚动条的设置
        &-thumb {
            background: rgba(144, 147, 153, 0.3);
            border-radius: 12px;
            -webkit-border-radius: 12px;
            &:hover {
                background: rgba(144, 147, 153, 0.5);
            }
        }
        // 滚动条凹槽的颜色，还可以设置边框属性
        &-track-piece {
            background: transparent;
        }
    }
}